#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include "https_service.h"
#include "thr.h"
#include "db_auth_mgmt.h"
#include "db_query.h"

int main(int argc, char* argv[])
{
	#if 0
	char ibuf0[64]; char ibuf1[64];
	printf("Input   DBA password: "); scanf("%s", ibuf0);
	printf("Confirm DBA password: "); scanf("%s", ibuf1);
	if(strcmp(ibuf0, ibuf1) != 0)
	{
		fprintf(stderr, "DBA password wrong!\n");
		return 1;
	}else{
		strcpy(DBA_PASSWORD, ibuf0);
	}
	#endif
	strcpy(DBA_PASSWORD, "1231supor");

	THR_HND thr_https;
	thr_construct(&thr_https, thrfx_https_service, NULL);
	
	while(1)
	{
		sleep(2);
	}
	return 0;
}